package com.gdqy.FCS.service;


import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.gdqy.FCS.common.service.BaseService;
import com.gdqy.FCS.dao.DictionaryTypeDao;
import com.gdqy.FCS.entity.DictionaryType;


@Service
@Transactional
public class DictionaryTypeService extends BaseService{
	
	
	@Autowired
	private DictionaryTypeDao dictionaryTypeDao;
	
	//通过字典类型里面的name进行查询
	public DictionaryType selectByName(String name){
		return dictionaryTypeDao.selectByName(name);
	}
	
	public List<DictionaryType> selectAll(){
		return dictionaryTypeDao.selectAll();
	}
	
	public int insert(DictionaryType dictionaryType) {
		return dictionaryTypeDao.insert(dictionaryType);
	}
}
